 function checkForm(){
	if(docForm.uName.value=="")
	{
		confirm('用户名不能为空吖');
		return false;
	}
	if(docForm.email.value=="")
	{
		confirm('邮箱不能为空');
		return false;
	}
	if(docForm.uPass.value=="")
	{
		confirm('密码不能为空');
		return false;
	}
	
	if(docForm.uPass.value!=docForm.uPass2.value)
	{
		confirm('两次密码不同哟,请再次输入');
		return false;
	}
	
}
function nameCheck()
{
	$.ajax({
		type:"POST",
		url:"../admin/nameServe.php",
		data:{'uName':$("#uName").val(),'uId':$("#uId").val()},
		success:function(text){
			$("#uNameDete").html(text);
		}
	});
}

function passCheck()
{
	$.ajax({
		type:"POST",
		url:"../admin/passServe.php",
		data:{'uPass':$("#uPass").val(),'uId':$("#uId").val()},
		success:function(text){
			$("#tr").html(text);
		}
	});
}

//回调函数,调用该方法传一个文件路径，该变背景图
function showimg(url)
{
	
    var div = document.getElementById("preview");
    div.style.backgroundImage = "url("+url+")";
     
    document.getElementById("pic").value = url;
}
